<?php
/*  error_message.inc

Copyright (C) 2011  Anthony Gaudino

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

function show_error_message($message)
{
    global $base_url;
    
    echo '
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <meta name="description" content="" />
        <meta name="keywords" content="" />
        <meta name="author" content="" />
        <link rel="stylesheet" type="text/css" href="includes/messages/style_error.css" media="screen" />
        <title>1stWebDesigner PHP Template</title>
    </head>
    <body>
        <div id="header">
            <pre>
                ,-------------,
                |    D S F    |
                \'-,  ,--------´
                  |,´          
            </pre>
            <h1>Damn Small Forum</h1>
        </div>
        <div id="content">
            <br></br>
            <br></br>
            <br></br>
            <div id="message">
                <h3>==================================== ERROR ====================================</h3>
                <h4>                                ' . $message . '                                </h4>
                <h3>==================================== ERROR ====================================</h3>
            </div>
            <br></br>
            <div id="friends">
                <pre>
                        ,--------------,                 ,------------------,
                        |     Oops!    |                 |  Just check the  |
                        | I need help. |                 |  documentation.  |
                        \'-,  ,---------´   ,           , \'-,  ,-------------´
                          |,´             /             \  |,´           
                       .--.              ((__-^^-,-^^-__))               
                      |o_o |              `-_---\' `---_-\'                
                      |:_/ |               `--|o` \'o|--\'                 
                     //   \ \                 \  `  /                    
                    (|     | )                 ): :(                     
                    /\'\_   _/`\                :o_o:                     
                    \___)=(___/                 "-"                      
                </pre>
            </div>
            <div id="footer">
                <h4><h4> <a href="' . $base_url . '">=== RETURN TO MAIN PAGE ===</a></h4></h4>
            </div>
        </div>
    </body>
</html>';
}
?>